package com.cmc.cloud.cmclink.doc.vo.blnorulepbcodevo;

import com.cmc.cloud.cmclink.doc.rpcservice.vo.PortNameBaseVo;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * {table.classComment}Response VO
 * 
 * @author codegen
 */
@Schema(description = "管理后台 - 接货地提单号两位码 Response VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@NoArgsConstructor
@AllArgsConstructor
public class BlnoRulePbcodeRespVO extends PortNameBaseVo {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "19573")
    private Long id;

    @Schema(description = "创建时间;", requiredMode = Schema.RequiredMode.REQUIRED)
    private LocalDateTime createTime;

    @Schema(description = "港口类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotBlank(message = "港口类型不能为空")
    @Length(max = 50,message = "港口类型支持最大长度{max}")
    private String portType;

    @Schema(description = "接货地代码;", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "接货地代码;不能为空")
    @Length(max = 5,message = "接货地代码;支持最大长度{max}")
    private String porCode;

    @Schema(description = "接货地提单号两位码;", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "接货地提单号两位码;不能为空")
    @Length(max = 2,message = "接货地提单号两位码;支持最大长度{max}")
    private String porBlnoCode;

    @Schema(description = "是否启用;", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "是否启用;不能为空")
    private Boolean enable;

    @Schema(description = "操作时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

    @Schema(description = "操作人", requiredMode = Schema.RequiredMode.REQUIRED)
    private String updater;
}
